            <div id="info-bar-small">Modfica informazioni personali</div>
            <div id="main">
<?php
    include 'connect.php';
    if (isset($_GET['id']) && is_numeric($_GET['id'])) {
        $id = $_GET['id'];
        $result = mysql_query("SELECT * FROM profile WHERE id=$id") or die(mysql_error()); 
        $row = mysql_fetch_array($result);
        $name = $row['name'];
        $bio = $row['bio'];
    }
?>
                     <div id="view-profile">
                        <dl>
                            <dt>Nome</dt>
                            <form method="post" action="./includes/action_edit_profile.php?id=<?=$id;?>">
                                <dd><input type="text" name="name" value="<?php echo $name; ?>" class="edit-name" required /></dd><br />
                            <dt>Bio</dt>
                                <dd><textarea name="bio" class="edit-bio"><?php echo "$bio"; ?></textarea></dd>
                                <div class="floatright"><dd><input type="submit" name="submit" value="Salva Modifiche" class="post-button"></dd></div>
                            </form>
                        </dl>
                    </div> 
            </div><!-- /main -->
